import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;


public class ZFFile {
	BufferedReader in;
	public ZFFile(String filepath,String charset) throws UnsupportedEncodingException, FileNotFoundException{
		File file = new File(filepath);
	    FileInputStream fis = new FileInputStream(file);
		this.in = new BufferedReader(new InputStreamReader(fis,charset)); 
	}
	
	public String read() throws IOException
	{
		String content = "";
		String line = "";
		while((line = in.readLine())!=null)
		{
			content+=line;
		}
		return content;
		
	}

}
